package com.sxjh.entity.bo;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

// 化工原料采购日报表查询对象
@Data
public class Finance3HgylcgrbbBo {
    // 物料名称
    private String materialName;
    // 供应商
    private String companyName;
    // 供应商类型 0|正常数据,1|被拆单的数据,2|拆单出来的数据
    private int type;
    //车牌号
    private String plateNumber;
    //原发重量
    private BigDecimal netWeight;
    // 实收重量
    private BigDecimal weighbridgeWeight;
    // 结算价
    private BigDecimal settlementPrice;
    // 运费单价
    private BigDecimal freight;
    public BigDecimal getNetWeight() {
        if("".equals(netWeight)||netWeight==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return netWeight;
    }

    public BigDecimal getWeighbridgeWeight() {
        if("".equals(weighbridgeWeight)||weighbridgeWeight==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return weighbridgeWeight;
    }

    public BigDecimal getSettlementPrice() {
        if("".equals(settlementPrice)||settlementPrice==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return settlementPrice;
    }

    public BigDecimal getFreight() {
        if("".equals(freight)||freight==null){
            return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
        }
        return freight;
    }
}
